package co.baiku.boot.wechat.config;

import co.baiku.boot.wechat.config.open.WxOpenServiceAutoConfiguration;
import co.baiku.boot.wechat.config.open.WxOpenStorageAutoConfiguration;
import co.baiku.boot.wechat.properties.WxOpenProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * .
 *
 * @author someone
 */
@Configuration
@ConditionalOnProperty(prefix = "wx.open", value = "enabled", havingValue = "true")
@EnableConfigurationProperties(WxOpenProperties.class)
@Import({
        WxOpenStorageAutoConfiguration.class,
        WxOpenServiceAutoConfiguration.class
})
public class WxOpenAutoConfiguration {
}
